<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('全部企业')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <p>企业名称：</p>
                                <input type="text" name="operator"/>
                            </li>
                            <li>
                                <p>法人姓名：</p>
                                <input type="text" name="operator"/>
                            </li>
                            <li>
                                <p>代码证号：</p>
                                <input type="text" name="operator"/>
                            </li>
                            <li>
                                <p style="width:104px">海南负责人姓名：</p>
                                <input type="text" name="operator"/>
                            </li>
                            <li>
                                <p>电话：</p>
                                <input type="text" name="operator"/>
                            </li>
                            <li>
							地区：<select name="projecttype" th:with="type=${@dict.getType('sys_normal_disable')}">
							            <option value="">全部</option>
										<option value="">省内</option>
										<option value="">省外</option>
								   </select>
								</li>  
                            <li>
                            <li>
                                <p>企业类型：</p>
                                <input type="text" name="operator"/>
                            </li>
                            <li>
                                <!-- <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a> -->
                                <a class="btn btn-primary btn-rounded btn-sm"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>
            <div class="col-sm-12 select-table table-striped">
                 <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
    var prefix = ctx + "enterprise/enterpriseAll";
    
    $(function() {
    	$('#bootstrap-table').bootstrapTable({
    	/* var options = {
    			url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                detailUrl: prefix + "/detail/{id}",
                modalName: "全部项目", */
                columns: [{
                        field: 'id',
                        title: '序号',
						formatter: function (value, row, index) {
						
						    return index + 1;
						}
                    }, {
                        field: 'name',
                        title: '企业名称',
                        formatter: function (value, row, index) {
                            var actions = [];
                            actions.push('<a href="'+prefix+'/detail?name='+value+'">'+value+'</a>'); 
                            //actions.push('<a href="javascript:void(0)" onclick="$.operate.detailFull(\'' + row.id + '\')">'+value+'</a>');
                            return actions.join('');
                        }
                    }, {
                        field: 'registeredplace',
                        title: '注册地'
                    },
                    {
                        field: 'qualifications',
                        title: '资质内容'
                    },
                    {
                        field: 'contacts',
                        title: '联系人'
                    },
                    {
                        field: 'contactnumber',
                        title: '联系电话'
                    },
                    {
                        field: 'address',
                        title: '营业地址'
                    }
                ],
                data: [{
                    name: '海南田德房地产开发有限公司',
                    registeredplace: '海南省海口市',
                    qualifications: '建筑工程工程设计专业资质丙级',
                    contacts: '陆圣',
                    contactnumber: '13098915692',
                    address: '海口市海甸岛沿江三东路中新商务大厦6层A2BC座'
                },
                      {
	                    name: '中天建设集团有限公司',
	                    registeredplace: '浙江省杭州市',
	                    qualifications: '机电工程施工总承包一级',
	                    contacts: '楼国胜',
	                    contactnumber: ' ',
	                    address: '浙江省金华东阳市吴宁东路65号'
	                }]
    	    })
        //};
    	//$.table.init(options);
    });
    </script>
</body>
</html>